package com.cskaoyan.mall.util;

/**
 * @author: jyf2000jyf
 */
public class Result {
    /**
     * code取值有0和10000,0表示成功，10000表示失败
     */
    private Integer code;
    /**
     * 仅当code为10000时才会获取该值
     */
    private String message;
    /**
     * 当code为0时，如果需要返回数据，那么放置在data中
     */
    private Object data;

    public Result() {
    }

    public Result(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
